package com.lky.marshallmall.member.controller;

import com.lky.common.utils.R;
import com.lky.marshallmall.member.vo.BannerDTO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by
 * autor : Marshall lky
 * datetime: 2021/5/13 17:30
 */
@Controller
public class TestController {

    @ResponseBody
    @PostMapping("/banner")
    public R<BannerDTO> getBanner(){
        BannerDTO bannerDTO = new BannerDTO();
        bannerDTO.setBannerId("1");
        bannerDTO.setBannerName("2");
        bannerDTO.setBannerUrl("123");
        return R.ok().setData(bannerDTO);
    }
}
